package org.test.client.forcedirect;

import java.awt.Color;
import java.awt.Graphics2D;
import java.util.UUID;

public class FDNode {

	private int x ;
	private int y ;
	private int radius = 10;
	private Color color = Color.RED;
	
	private String id = null;
	
	public FDNode(){
		id = UUID.randomUUID().toString();
	}
	
	public void renderNode(Graphics2D g2d){
		
		g2d.setColor(color);
		g2d.fillOval(x-radius, y-radius, radius*2, radius*2);
		
	}


	
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}


	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}

	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
